[SVM] Return the shadow EFER value on guest EFER reads.
authorTravis Betak <travis.betak@amd.com>
Mon, 5 Mar 2007 22:18:10 +0000 (16:18 -0600)
committerTravis Betak <travis.betak@amd.com>
Mon, 5 Mar 2007 22:18:10 +0000 (16:18 -0600)
commitf12219735e7cdf5959f0293b4ae7088a3aeec4bb
tree19f6e85ff19c9e561cc5c7e779c6c33024be7028
parent8ec3367eb131de981c77bb9dd4eeb56ca17fa156
[SVM] Return the shadow EFER value on guest EFER reads.

Return the shadow of the guest's EFER instead of the VMCB.  This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).

Signed-off-by: Travis Betak <travis.betak@amd.com>
xen/arch/x86/hvm/svm/svm.c